﻿using UnityEngine;
using UnityEngine.UI;

namespace E.Story
{
    public class UIVarItem : UIItem<VarData>
    {
        [Header("UI组件")]
        [SerializeField] private Text txtKey;
        [SerializeField] private Text txtValue;


        public override void Refresh()
        {
            // 更新选项文本
            txtKey.text = Data.Key;
            txtValue.text = Data.Value.ToString();
        }
    }
}